import React from 'react';

const HomeView = (props) => {
  const { checkToken } = props;
  if (checkToken() === false) {
    alert('跳转到登录页面')
  } else {
    return (
      <div>
        <h1>Home</h1>
      </div>
    );
  }

}

export default HomeView;
